package exp2;

public class Novel_3 {
	public static void main(String[] args){
		int number=8639427;
		int k;
		int s=0;
		for(int i=0;i<7;i++)
		{
			k=number%10;
			number/=10;
			s=s*10+k;
		}
		System.out.println(s);
	}
}